home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global thingtimes, oldbox
- if the timer > getPropAt(thingtimes, 1) then
- if the timer > (getPropAt(thingtimes, 1) + 150) then
- set the castNum of sprite 17 to oldbox
- if getAt(getAt(thingtimes, 1), 1) <> 17 then
- puppetSprite(getAt(getAt(thingtimes, 1), 1), 0)
- end if
- if count(thingtimes) > 1 then
- deleteAt(thingtimes, 1)
- end if
- else
- if getAt(getAt(thingtimes, 1), 1) <> 17 then
- puppetSprite(getAt(getAt(thingtimes, 1), 1), 1)
- end if
- set the castNum of sprite getAt(getAt(thingtimes, 1), 1) to getAt(getAt(thingtimes, 1), 2)
- end if
- end if
- if the soundBusy of 1 then
- go(the frame - random(7))
- end if
- end
-